package com.yuan.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuan.blog.entity.UserEntity;

import java.sql.SQLException;

public interface IUserService extends IService<UserEntity> {
    void register(UserEntity userEntity) throws Exception;

    UserEntity queryUserByActivation(String code) throws SQLException;

    UserEntity login(UserEntity userEntity) throws SQLException;

    void updateHeaderUrl(Integer id, String filePath);

    boolean updatePwdById(Integer id, String password) throws SQLException;

    UserEntity queryById(Integer userId) throws Exception;

    int updateStatus(UserEntity userEntity) throws Exception;
}
